package com.canplay.screen.network


import com.canplay.screen.response.Response
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.POST
import retrofit2.http.Streaming

interface ApiService {


    /**
     * 获取版本信息
     */
    @POST("/system/api/selectVersion")
    suspend fun selectVersion(): Response<Long>


    /**
     * 获取所有数据
     */
    @POST("/system/api/getAll")
    @Streaming
     fun downloadData(): Call<ResponseBody>


    companion object {
        fun create(): ApiService {
            return RetrofitManager.createApi(ApiService::class.java)
        }
    }
}